﻿using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;

namespace HDJ.Framework.Core
{
    public class LogModuleHandler : AppModuleBase
    {

        public override string GetModuleVersion()
        {
            return "0.0.1";
        }

        public override void OnCreate()
        {
            if (ApplicationManager.GameRunType == GameRunType.Release)
                LogManager.Init(LogType.Error);
            else
                LogManager.Init(LogType.Log);
        }

        public override void OnApplicationQuit()
        {
            LogManager.Close();
        }
    }
}